package com.googlecode.kipler.container.dl.operational;

import java.util.Iterator;
import java.util.NoSuchElementException;

import com.googlecode.kipler.container.dl.World;
import com.googlecode.kipler.container.graph.RelationalNode;

public class WorldIterator implements Iterator<World> {
	private Iterator<RelationalNode<World, String, String>> iter;

	public WorldIterator() {
	}

	public WorldIterator(Iterator<RelationalNode<World, String, String>> iter) {
		this.iter = iter;
	}

	public boolean hasNext() {
		return iter.hasNext();
	}

	public World next() {
		if (iter == null) {
			throw new NoSuchElementException();
		}
		return iter.next().getValue();
	}

	public void remove() {

	}
}
